package com.sf.osms.dep.biz.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sf.osms.dep.biz.IRouterTmpBiz;
import com.sf.osms.dep.dao.IRouterTmpDao;
import com.sf.osms.dep.domain.RouterTmp;

@Service
@Transactional
public class RouterTmpBizImpl implements IRouterTmpBiz  {

@Autowired
private IRouterTmpDao routerTmpDao;	


@Override
public List<RouterTmp> findFailuresByAgentWaybill(String agentWaybill) {
	return routerTmpDao.findFailuresByAgentWaybill(agentWaybill);
}

@Override
public List<RouterTmp> queryWithinTime(Date startDate, String agentWayBill) {
	return routerTmpDao.queryWithinTime(startDate,agentWayBill);
}

@Override
public void saveOrUpdate(RouterTmp routerTmp) {
	this.routerTmpDao.saveOrUpdate(routerTmp);
}



}
